package com.blb.exam.student.dao.impl;

import com.blb.common.entity.Question;

import com.blb.common.utils.DBUtils;
import com.blb.exam.student.dao.QuetionDAO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class QuetionDAOImpl implements QuetionDAO {

    @Override
    public List<Question> selectByQuetionSetId(int setId) {
        return DBUtils.executeQuery(Question.class,"select * from t_question where question_set_id = ?",setId);
    }
}
